projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80630da
)
ARM: uniphier: do not overwrite fdt_file environment
author
Masahiro Yamada
<
[email protected]
>
Tue, 7 Jun 2016 12:03:44 +0000
(21:03 +0900)
committer
Masahiro Yamada
<
[email protected]
>
Wed, 8 Jun 2016 23:18:34 +0000
(08:18 +0900)
This code auto-detects the best-match FDT file name, but it should
respect the user's choice if "fdt_file" environment is found in a
saved set of environments.
Signed-off-by: Masahiro Yamada <
[email protected]
>
arch/arm/mach-uniphier/board_late_init.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-uniphier/board_late_init.c
b/arch/arm/mach-uniphier/board_late_init.c
index d9eeacbf3a61639f216626b191b34677d11cb4c9..a45412677a0ffcfad93ca01f7a6ee222471f90ce 100644
(file)
--- a/
arch/arm/mach-uniphier/board_late_init.c
+++ b/
arch/arm/mach-uniphier/board_late_init.c
@@
-39,6
+39,9
@@
static int uniphier_set_fdt_file(void)
int buf_len = 256;
int ret;
+ if (getenv("fdt_file"))
+ return 0; /* do nothing if it is already set */
+
ret = fdt_get_string(gd->fdt_blob, 0, "compatible", &compat);
if (ret)
return -EINVAL;